//    Copyright (C) Kherty.  All rights reserved.
using System.Globalization;
using System.Windows;
using System.Windows.Media;
using System.Windows.Media.TextFormatting;

namespace OpenLS.Spreadsheet.UI.Internals
{
    abstract class CellTextRunPropertiesBase: TextRunProperties
    {
        protected Brush _backgroundBrush;
        protected Brush _foregroundBrush;
        protected double _size;
        protected Typeface _typeFace;

        public override Typeface Typeface
        {
            get { return _typeFace; }
        }

        public override double FontRenderingEmSize
        {
            get { return _size; }
        }

        public override double FontHintingEmSize
        {
            get { return _size; }
        }

        public override TextDecorationCollection TextDecorations
        {
            get { return null; }
        }

        public override Brush ForegroundBrush
        {
            get { return _foregroundBrush; }
        }

        public override Brush BackgroundBrush
        {
            get { return _backgroundBrush; }
        }

        public override CultureInfo CultureInfo
        {
            get { return CultureInfo.CurrentUICulture; }
        }

        public override TextEffectCollection TextEffects
        {
            get { return null; }
        }
    }
}